﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Engine
{
    public class InputManager : Manager
    {
        static InputManager _instance;
        public static InputManager Instance { get { return _instance; } }

        public GamePadComponent GPad { get; private set; }
        public KeyboardComponent KBoard { get; private set; }
        

        public InputManager()
        {
            GPad = new GamePadComponent();
            KBoard = new KeyboardComponent();

            _instance = this;
        }

        //static InputManager()
        //{
        //    _instance = new InputManager();
        //}

        public override void Update(GameTime gameTime)
        {
            GPad.Update(gameTime);
            KBoard.Update(gameTime);
            base.Update(gameTime);
        }

    }
}
